package com.sina;

import ch.hsr.geohash.GeoHash;
import org.apache.hadoop.hive.ql.exec.UDF;

public class MyUDF extends UDF {

    public String evaluate(Double wd,Double jd,Integer len){
        GeoHash geoHash = GeoHash.withCharacterPrecision(wd, jd, len);
        return geoHash.toBase32();
    }

}